package com.yc.DAO;

import com.yc.bean.Resuser;
import com.yc.commons.DBHelper;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

/**
 * @author zwei
 * @create 2024-06-08 20:01
 */
public class UserDAO {
    DBHelper dbHelper=new DBHelper();
    public List<Resuser> finduser(String username, String pwd) throws InvocationTargetException, InstantiationException, IllegalAccessException {
        String sql="select*from resuser where username=? and pwd=?";
        return dbHelper.select(Resuser.class,sql,username,pwd);
    }
}
